﻿// See https://aka.ms/new-console-template for more information
using System;
public class print_prime
{   
    static bool IsPrime(int num)
    {
        if (num <= 1)
            return false;
        for (int i = 2; i <= Math.Sqrt(num); i++)
        {
            if (num % i == 0)
            {
                return false;
            }
                
        }
        return true;
    }
    public static void Main()
    {
        int a, b;
        Console.Write("Please enter two integers\n");
        a=Int32.Parse(Console.ReadLine());  
        b=Int32.Parse(Console.ReadLine());
        int count = 0;
        for (int i = a;i <= b;i++)
        {
            if (IsPrime(i))
            {
                Console.Write(i + "\t");
                count++;
                if (count >= 10)
                {
                    Console.WriteLine();
                    count = 0;
                }
            }
        }
    }
}